package cn.portx.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import com.bstek.bdf3.dorado.jpa.annotation.Generator;
import com.bstek.dorado.annotation.PropertyDef;

import cn.portx.policy.CreateUserPolicy;
import cn.portx.policy.CreatedDatePolicy;

@Entity
@Table(name = "T_HEXIAO_LOG", indexes = {
		@Index(name = "HexiaoLog_orderExpenseId_", columnList = "ORDER_EXPENSE_ID_") })
public class HexiaoLog extends BaseEntity {

	private static final long serialVersionUID = -356064986767476691L;

	@Column(name = "HX_USER_", length = 60)
	@Generator(policy = CreateUserPolicy.class)
	@PropertyDef(label = "核销人")
	private String hxUser;

	@Column(name = "HX_USER_NAME_", length = 60)
	@PropertyDef(label = "核销人")
	private String hxUsername;

	@Column(name = "TYPE_")
	@PropertyDef(label = "核销类型", description = "0：核销；1：反核销")
	private int type;

	@Column(name = "HX_DATE_")
	@Generator(policy = CreatedDatePolicy.class)
	@PropertyDef(label = "核销日期")
	private Date hxDate;

	@Column(name = "HXJE_", precision = 10, scale = 2)
	@PropertyDef(label = "核销金额")
	private Double hxje;

	@Column(name = "ORDER_EXPENSE_ID_", length = 60)
	private String orderExpenseId;

	public String getHxUser() {
		return hxUser;
	}

	public void setHxUser(String hxUser) {
		this.hxUser = hxUser;
	}

	public String getHxUsername() {
		return hxUsername;
	}

	public void setHxUsername(String hxUsername) {
		this.hxUsername = hxUsername;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getHxDate() {
		return hxDate;
	}

	public void setHxDate(Date hxDate) {
		this.hxDate = hxDate;
	}

	public Double getHxje() {
		return hxje;
	}

	public void setHxje(Double hxje) {
		this.hxje = hxje;
	}

	public String getOrderExpenseId() {
		return orderExpenseId;
	}

	public void setOrderExpenseId(String orderExpenseId) {
		this.orderExpenseId = orderExpenseId;
	}

}
